<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<!-- CSS  -->
	<link href="<c:url value="/resources/blueprint/screen.css" />" rel="stylesheet" type="text/css" />
	<link href="<c:url value="/resources/blueprint/ie.css" />" rel="stylesheet" type="text/css" />
	<link href="<c:url value="/resources/jqueryui/1.8.9/css/overcast/jquery-ui-1.8.9.custom.css" />" rel="stylesheet" type="text/css" />
	<link href="<c:url value="/resources/jqgrid/css/ui.jqgrid.css" />" rel="stylesheet" type="text/css" />
	<link href="<c:url value="/resources/jquerylayout/1.3/layout.css" />" rel="stylesheet" type="text/css" />
	
	<!-- JS Library -->
	
	
	<script type="text/javascript" src="<c:url value="/resources/jquery/1.4/jquery.js" />"></script>

	<script type="text/javascript"	src="<c:url value="/resources/jqueryui/1.8.9/jquery-ui-1.8.9.custom.min.js" />"></script>

	<script type="text/javascript"	src="<c:url value="/resources/jquerylayout/1.3/jquery.layout.js" />"></script>

	<script type="text/javascript"	src="<c:url value="/resources/jqgrid/i18n/grid.locale-cn.js" />"></script>

	<script type="text/javascript"	src="<c:url value="/resources/jqgrid/jquery.jqGrid.min.js" />"></script>
	
</head>
<body>
		<div class="container">
			<%@ include file="/common/header.jsp"%>
			<div id="content">
				<div class="span-24 last">
					<h3>
						用户登录
					</h3>
					<%
						if ("1".equals(request.getParameter("error"))) {
					%>
					<div class="error">用户名密码错误,请重试.</div>
					<%
						}
						if ("2".equals(request.getParameter("error"))) {
					%>
					<div class="error">验证码错误,请重试.</div>
					<%
						}
						if ("3".equals(request.getParameter("error"))) {
					%>
					<div class="error">此帐号已从别处登录.</div>
					<%
						}
					%>
					<form id="loginForm" style="margin-top: 1em;"
						action="<c:url value="/j_spring_security_check" />" method="post"">
						<table class="noborder">
							<tr>
								<td>
									<label for="username">
										用户名:
									</label>
								</td>
								<td>
									<input type="text" name="j_username" class="required" />
								</td>
							</tr>
							
							<tr>
								<td>
									<label for="password">
										密码:
									</label>
								</td>
								<td>
									<input type="password" name="j_password" class="required"/>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<input type="submit" class="button" value="登录"/>
								</td>
							</tr>
						</table>
					</form>
				</div>
			</div>
			<%@ include file="/common/footer.jsp"%>
		</div>
	</body>
</html>